
#ifndef __LOG_RECORD_HPP__
#define __LOG_RECORD_HPP__

#include    <string>

namespace   tiny
{

class   LogRecord
{

public  :
    LogRecord( const char* pszTimeStamp, const char* pszFileName, int iLineNo, const char* pszCategory, int iLevel, const char* pszMessage )
    :   m_pszTimeStamp(pszTimeStamp), 
        m_pszFileName(pszFileName),
        m_iLineNo(iLineNo),
        m_pszCategory(pszCategory),
        m_iLevel(iLevel),
        m_pszMessage(pszMessage)
    {
    }

public  :
    const char* timestamp() const { return m_pszTimeStamp; }
    const char* filename() const { return m_pszFileName; }
    int     lineno() const { return m_iLineNo; }
    const char* category() const { return m_pszCategory; }
    int     level()  const { return m_iLevel; }
    const char* message() const { return m_pszMessage; }

private :
    const char*   m_pszTimeStamp;

    const char*   m_pszFileName;
    int     m_iLineNo;
    
    const char*   m_pszCategory;
    int     m_iLevel;

    const char*   m_pszMessage;

};  // class LogRecord

}

#endif  // __LOG_RECORD_HPP__
